<T:ViewBase x:Class="WPFExcelReport.TLRFKORR02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFKORRTAB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFKORRTAB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFMAT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFMAT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFKORRFAKT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFKORRFAKT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFAKTOR1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFAKTOR1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFLOTVH1:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFLOTVH1}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFAKTOR2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFAKTOR2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFLOTVH2:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFLOTVH2}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFAKTOR3:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFAKTOR3}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFLOTVH3:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFLOTVH3}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=LRFFAKTOR4:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwLRFKORR.LRFFAKTOR4}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsLRFKORR,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwLRFKORR}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwLRFKORR, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="LRFMANDANT"
                                    Binding="{Binding Path=LRFMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFKORRTAB"
                                    Binding="{Binding Path=LRFKORRTAB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFKORRTAB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFMAT"
                                    Binding="{Binding Path=LRFMAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFMAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFKORRFAKT"
                                    Binding="{Binding Path=LRFKORRFAKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFKORRFAKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR1"
                                    Binding="{Binding Path=LRFFAKTOR1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH1"
                                    Binding="{Binding Path=LRFFLOTVH1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR2"
                                    Binding="{Binding Path=LRFFAKTOR2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH2"
                                    Binding="{Binding Path=LRFFLOTVH2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR3"
                                    Binding="{Binding Path=LRFFAKTOR3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH3"
                                    Binding="{Binding Path=LRFFLOTVH3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR4"
                                    Binding="{Binding Path=LRFFAKTOR4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH4"
                                    Binding="{Binding Path=LRFFLOTVH4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR5"
                                    Binding="{Binding Path=LRFFAKTOR5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH5"
                                    Binding="{Binding Path=LRFFLOTVH5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR6"
                                    Binding="{Binding Path=LRFFAKTOR6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH6"
                                    Binding="{Binding Path=LRFFLOTVH6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR7"
                                    Binding="{Binding Path=LRFFAKTOR7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH7"
                                    Binding="{Binding Path=LRFFLOTVH7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR8"
                                    Binding="{Binding Path=LRFFAKTOR8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH8"
                                    Binding="{Binding Path=LRFFLOTVH8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR9"
                                    Binding="{Binding Path=LRFFAKTOR9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH9"
                                    Binding="{Binding Path=LRFFLOTVH9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR10"
                                    Binding="{Binding Path=LRFFAKTOR10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH10"
                                    Binding="{Binding Path=LRFFLOTVH10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR11"
                                    Binding="{Binding Path=LRFFAKTOR11, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR11}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH11"
                                    Binding="{Binding Path=LRFFLOTVH11, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH11}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR12"
                                    Binding="{Binding Path=LRFFAKTOR12, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR12}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH12"
                                    Binding="{Binding Path=LRFFLOTVH12, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH12}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR13"
                                    Binding="{Binding Path=LRFFAKTOR13, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR13}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH13"
                                    Binding="{Binding Path=LRFFLOTVH13, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH13}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFAKTOR14"
                                    Binding="{Binding Path=LRFFAKTOR14, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFAKTOR14}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFLOTVH14"
                                    Binding="{Binding Path=LRFFLOTVH14, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFLOTVH14}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFFILLER"
                                    Binding="{Binding Path=LRFFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFAENDZL"
                                    Binding="{Binding Path=LRFAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFAENDBEN"
                                    Binding="{Binding Path=LRFAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFAENDDAT"
                                    Binding="{Binding Path=LRFAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFNEUBEN"
                                    Binding="{Binding Path=LRFNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="LRFNEUDAT"
                                    Binding="{Binding Path=LRFNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=LRFNEUDAT}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
